<?php  if (!defined("IS_INITPHP")) exit("Access Denied!");  /* INITPHP Version 1.0 ,Create on 2015-11-14 17:04:55, compiled from D:\chendeben\zendwork\huodongxun/app/template/huodongxun/home/user/info.html */ ?>
<!DOCTYPE html   "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>个人主页</title>
<link href="/static/css/wrap.css" rel="stylesheet" type="text/css" />
<link href="/static/css/common.css" rel="stylesheet" type="text/css" />
<link href="/static/css/header.css" rel="stylesheet" type="text/css" />
<link href="/static/css/sec_main_grzy.css" rel="stylesheet" type="text/css" /> 
<link href="/static/css/footer_zpy.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="/static/js/jquery-1.3.2.min.js"></script>


<script type="text/javascript">
	$(document).ready(function() {
		setY_contentHeight();
	});
	//用于计算准确高度
	function setY_contentHeight(){
		var sheight = $(".l_item").length;
		if(sheight>2){
			var zheight = parseInt(sheight)*430;
			 
			$(".y_content").css("height",zheight);
		}
	}
</script>
</head>
<body>
<!--头部  开始 -->
<div class="header_top">
  <div class="header">
    <!-- 导航栏  开始-->
     <div class="nav">
      <div class="logo"> </div>
      <!-- 菜单 -->
      <div class="menu">
        <ul>
          <li class="mitem"> <a href="/" >首页</a> </li>
          <li class="mitem"> <a href="/home/user/active_list" >活动</a> </li>
          <li class="mitem"> <a href="#" >直播</a> </li>
          <li class="mitem"> <a href="#" >关注</a> </li>
        </ul>
      </div>
      <!-- 登录 -->
      <div class="login">  
				<?php if ($username!="") { ?>
				 <a href="/home/user/info"><?php echo $username;?></a>
				 <?php } else { ?>
				 <a href="login.html">登录</a>| <a href="login.html">注册</a>
				 <?php } ?> 
				 </div>
      <!-- 发送活动 -->
      <div class="send_activity"> 
	  	<a href="/home/user/add_active">发布活动 </a>
	  
	  </div>
    </div>
    <!-- 导航栏  结束-->
  </div>
</div>
<!--头部  结束 -->
<!--身体  开始 -->
<div class="y_content_bg"></div>
<div class="y_content">
	
  <div class="layout_all"> 
  	<div class="l_left">
  	<?php foreach ($active as $k=>$v) { ?>
		<!-- 一条信息 开始 -->
		<div class="l_item">
			<div class="item_img">
				<!-- 头像-->
				<div class="l_photo">
					<img src="<?php echo $v['user']['thumbnail'];?>"/>
				</div>
			</div>
			<div class="item_cnt">
				<div class="l_top"></div> 
				<!-- 内容 -->
				<div class="l_content"> 
					<div class="author">
						<a href="/home/user/userinfo?id=<?php echo $v['user']['id'];?>"><?php echo $v['user']['nick'];?></a>
					</div>
					<div class="title">
						<a href="/home/user/active_detail?id=<?php echo $v['id'];?>"><?php echo $v['title'];?></a>
					</div>
					<div class="date">
						<?php echo date("Y/m/d",$v['start_time']) ?> 至 <?php echo date("Y/m/d",$v['end_time']) ?>
					</div>
					<div class="content">  <!-- 填充数据时 1.取内容中第一张图 大小等于这样 样图. 2 数据取前100个字,并去除原先格式-->
						<img style="width:300px" src="<?php echo $v['thumbnail'];?>" />
						
						<p> 
						<?php  echo InitPHP::output($v['content'],'decode'); ?>
						</p>
					</div>
					<div class="operation">
						热度(<?php echo $v['views'];?>)  分享 推荐
					</div>
				</div>
			</div> 
		</div>
		<?php } ?>
	</div>
  	<div class="l_right">
		<div class="user">
			<div class="u_item">
				<div class="u_photo">
					<img src="/static/images/1 (9).jpg"/>
				</div> 
				<div class="u_name">
					<?php echo $data['real_name']?:$data['nick']; ?>
				</div>
			</div>
			<div class="u_item2">
				<a href="/home/user/myfollow">我关注的活动</a>
			</div>
			<div class="u_item2">
				<a href="/home/user/setting">个人信息设置</a>
			</div>
			
		</div>
		
		<div class="rmhd">
			<div class="title">热门活动</div>
			<div class="item">
				<div class="u_item2">万达博饼</div>
				<div class="u_item2">万宝博饼</div>
				<div class="u_item2">万阳城博饼</div>
				<div class="u_item2">万阳城博饼</div>
				<div class="u_item2">万阳城博饼</div>
			</div>
			
		</div> 
		
		<div class="rmhd">
			<div class="title">热门关注</div>
			<div class="item">
				<div class="u_item2">万达博饼</div>
				<div class="u_item2">万宝博饼</div>
				<div class="u_item2">万阳城博饼</div>
				<div class="u_item2">万阳城博饼</div>
				<div class="u_item2">万阳城博饼</div>
			</div>
		</div>
	</div>
  </div>	 

</div>
<!--身体  结束 --> 
  
<!--底部  开始-->
<div class="footer_bottom">
  <div class="footer">
    <div class="f_item record"> 2015 年 huodongxun.com 闽ICP备12392193219号 </div>
    <div class="f_item share"> 微信 微博 空间 </div>
    <div class="f_item f_menu"> <a href="#" > 关于我们 </a> | <a href="#" >加入我们</a> | <a href="#" >联系我们</a> | <a href="#" >服务条款</a> | <a href="#" >友情链接</a> </div>
  </div> 
</div>
 <!--底部  结束-->
</body>
</html>